package com.luoran.bartalks.dao;

import java.util.List;

import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;

import com.luoran.bartalks.entity.biz.BtProject;
import com.luoran.bartalks.entity.biz.BtProjectMember;

public interface IBtProjectMemberDao extends BaseMapper<BtProjectMember> {

	void deleteProjectMemberByCompanyIdAndProjectId(@Param("companyId") String companyId,
			@Param("projectId") String id);

	// 根据项目id查询对应的成员
	List<BtProjectMember> getProjectMember(@Param("projectId") String id);

	// 根据成员ID查询对于的项目
	List<BtProjectMember> getProjectMembersByMemberId(@Param("memberId") String memberId,
			@Param("companyId") String companyId);

	// 根据项目id查询对应的管理员
	List<BtProjectMember> getProjectMemberByProjectIdAndMembertype(@Param("projectId") String id,
			@Param("memberType") int memberType);
	
	//根据用户ID公司ID去重查找项目ID
	List<BtProject> getProjectOfAPP(@Param("memberId")String memberId, @Param("companyId")String companyId);
}
